package com.huixin.zhang.common.utils;

import lombok.extern.slf4j.Slf4j;

import java.io.Closeable;
import java.io.IOException;


@Slf4j
public class IOUtils {

	/**
	 * 关闭对象，连接
	 * 
	 * @param closeable
	 */
	public static void closeQuietly(final Closeable closeable) {
		try {
			if (closeable != null) {
				closeable.close();
			}
		} catch (IOException e) {
			log.error("io stream close error. {}", e);
		}
	}
}
